package com.coderman.business.service;

import com.coderman.business.mapper.GradeMapper;
import com.coderman.business.service.base.IBaseService;
import com.coderman.common.error.SystemException;
import com.coderman.common.model.student.Grade;
import com.coderman.common.vo.student.GradeVO;
import com.coderman.common.vo.system.PageVO;

import java.util.List;

/**
 * 年级业务层接口
 * @author  文晓平
 * @Date 2023-1-9
 * @version 1.0
 */
public interface IGradeService extends IBaseService<GradeMapper, Grade, Integer> {
    PageVO<Grade> findList(Integer pageNum, Integer pageSize, GradeVO gradeVO);

    /**
     * 添加年级
     * @param gradeVO
     */
    void add(GradeVO gradeVO);

    /**
     * 编辑年级
     * @param id
     * @return
     */
    GradeVO edit(Integer id) throws SystemException;

    /**
     * 更新年级
     * @param id
     * @param gradeVO
     */
    void update(Integer id, GradeVO gradeVO) throws SystemException;

    /**
     * 删除年级
     * @param id
     */
    void delete(Integer id) throws SystemException;

    /**
     * 所有年级信息
     * @return
     */
    List<GradeVO> findAllVO();


    /**
     * 全部年级信息
     * @return
     */
    List<Grade> findAll();

}

